<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 th:text="${msg}">hehe</h1>
<div>
    <a href="" th:href="${link}">去百度</a>
    <a href="" th:href="@{link}">去百度</a>
</div>
</body>
</html>